<style>
    .operator-mg{
        background:#FFFEE6;
        color:#8F5700;
        padding:12px;
    }
    .operator-mg-tip{
        width:16px;
        height:16px;
        margin-right:8px;
        float:left;
    }
</style>
<script type="text/javascript">
    function serviceWorkReset() {
        $('#service-work-account').val('');
        $('#service-work-name').val('');
        $('#service-work-online').combobox('setValue', 2);
        $('#service-work-stime').datetimebox('setValue', '');
        $('#service-work-etime').datetimebox('setValue', '');
    }

</script>
<div class="operator-mg">
    <div class="operator-mg-tip icon-tip"></div>
    <div>温馨提示：在列表中点击右键可以弹出操作菜单</div>
</div>
<table id="service-work-list" class="easyui-datagrid" 
       url="<?php echo $this->config->item('base_url'); ?>Visitor/getLogList"
       title="解答记录" toolbar="#service-work-tb"
       rownumbers="true" pagination="true" fitColumns="true">
    <thead>
        <tr>
            <th field="sid" align="center" width="70">客服人员临时会话ID</th>
            <th field="service_id" align="center" width="50">客服</th>
            <th field="content" align="center" width="160">聊天内容</th>
            <th field="time" align="center" width="90">聊天时间</th>
            <th field="filepath" align="center" width="50">上传文件路径</th>
            <th field="ip" align="center" width="80">来源IP</th>
            <th field="cid" align="center" width="50">web客户临时id</th>
        </tr>
    </thead>
</table>
<div id="service-work-tb" style="padding:10px;height:auto">
    <div>
        <a class="easyui-linkbutton" iconCls="icon-add" plain="true"></a>
        <a class="easyui-linkbutton" iconCls="icon-remove" plain="true"></a>
        <a class="easyui-linkbutton" iconCls="icon-edit" plain="true"></a>
    </div>
    <div style="padding:10px">
        <label>客服账号：</label><input id="service-work-account"  style="width:80px">
        <label>客服姓名：</label><input id="service-work-name" style="width:80px;">
        <label>在线客服：</label>
        <select id="service-work-online" class="easyui-combobox" panelHeight="auto">
            <option value="2">不限制</option>
            <option value="1">在线</option>
            <option value="0">离线</option>
        </select>
        <label>指定时间段：</label>
        从<input id="service-work-stime" class="easyui-datetimebox"  style="width:150px;">
        到<input id="service-work-etime" class="easyui-datetimebox" style="width:150px;">
        <br/><br/>
        <button onclick="serviceWorkSearch()">搜索</button>
        <button onclick="location = '<?php echo $this->config->item('base_url'); ?>service/download';">下载</button>
        <button onclick="serviceWorkReset()">重置</button>
    </div>
</div>
